jQuery(document).ready(function(){
    jQuery("#volunteer_signin_button").click(function(){
        jQuery(".modal_bg").fadeIn(function(){
            jQuery("#volunteer_signin").show();
        });
        return false;
    });

    jQuery("#volunteer_go_signin").click(function(){
        var visitor_id = jQuery("#visitor_id_select").val();
        var url = "/visitors-signin/attend/" + visitor_id;
        window.location = url;
        return false;
    });

    jQuery("#cancel_volunteer_signin").click(function(){
        jQuery("#volunteer_signin").hide();
        jQuery(".modal_bg").fadeOut();
        return false;
    });

    jQuery(".action").bind("mouseenter", function(){
        jQuery(this).css("border", "1px solid green");
    });
    jQuery(".action").bind("mouseleave", function(){
        jQuery(this).css("border", "1px solid #C4C4C4");
    });

})